from variable import *

def createservicephoto():
    # 4. 创建现场照片
    os.chdir(MailWork_path)
    if not os.path.isfile("a.txt"):
        fd = open("a.txt", mode="a", encoding="utf-8")
        for i in range(10):
            fd.write("This is line %d\r\n" % (i + 1))
        fd.close()
    if not os.path.isfile(ServicePicture_Name):
        os.rename("a.txt", ServicePicture_Name)

